package com.Cychat.commons.entity.pojo;


import java.math.BigDecimal;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("product")
public class Product {
    @Schema(description="商品ID")
    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;
    @Schema(description="商家ID")
    private Integer merchantId;
    @Schema(description="商品名称")
    private String name;
    @Schema(description="分类ID")
    private Integer categoryId;
    @Schema(description="售价")
    private BigDecimal price;
    @Schema(description="原价")
    private BigDecimal originalPrice;
    @Schema(description="库存数量")
    private Integer stock;
    @Schema(description="主图URL")
    private String image;
    @Schema(description="标签")
    private String tag;
    @Schema(description="商品状态，0为下架，1为上架")
    private Integer status;
    @Schema(description="商品描述")
    private String description;
    @Schema(description="销量")
    private Integer sales;
    @Schema(description="评分")
    private BigDecimal rating;
    @Schema(description="创建时间")
    private Date createTime;
    @Schema(description="修改时间")
    private Date updateTime;
}